home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / filesyst / ncpfs / ipxripd-.000 / ipxripd- / ipxripd / Makefile < prev    next >
Makefile  |  1996-02-04  |  809b  |  50 lines

  1.  
  2. OBJS = ipxd.o ipxripd.o ipxsapd.o ipxsap.o ipxrip.o ipxkern.o ipxutil.o
  3.  
  4. CFLAGS = -Wall -O2 -g
  5.  
  6. all: ipxd
  7.  
  8. dep:
  9.     gcc -M *.c >.depend
  10.  
  11. install: all
  12.     install --strip ipxd -m 755 /usr/sbin
  13.     install ipxd.8 -m 755 /usr/man/man8
  14.     install ipx_ticks.5 -m 755 /usr/man/man5
  15.  
  16. release: 
  17.     mkdir ../release/router
  18.     ln *.c makefile ../release/router
  19.  
  20. ipxd: $(OBJS)
  21.     $(CC) -o $@ $(OBJS) $(LFLAGS)
  22.  
  23. clean: 
  24.     rm -f *.o *.a *~ *.bak ipxd .depend
  25.  
  26. realclean: clean
  27.     rm -f *.tgz
  28.  
  29.  
  30. SRCPATH=$(shell pwd)
  31. SRCDIR=$(shell basename $(SRCPATH))
  32. DISTFILE=$(SRCDIR).tgz
  33.  
  34. dist: tgz
  35.     make dep
  36.     make all
  37.  
  38. tgz: realclean
  39.     (cd ..; \
  40.          tar cvf - $(SRCDIR) | \
  41.             gzip -9 > $(DISTFILE); \
  42.          mv $(DISTFILE) $(SRCDIR))
  43.  
  44. #
  45. # include a dependency file if one exists
  46. #
  47. ifeq (.depend,$(wildcard .depend))
  48. include .depend
  49. endif
  50.